package br.inf.ufpr.formulario.domain;

import java.util.ArrayList;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import java.util.Set;
import br.inf.ufpr.formulario.domain.Professor_E;
import java.util.HashSet;
import javax.persistence.ManyToMany;
import javax.persistence.CascadeType;

@RooJavaBean
@RooToString
@RooEntity
public class RamoPesquisa_E {

    @NotNull
    private String nome;

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Professor_E> listaProfessor = new HashSet<Professor_E>();
}
